import request from '@/utils/request'

// 品类-分页查询
export function getCategoryPageList(data) {
  return request({
    url: '/category/getCategoryPageList',
    method: 'POST',
    data
  })
}
// 新增
export function addCategory(data) {
  return request({
    url: '/category/addCategory',
    method: 'POST',
    data
  })
}
// 删除
export function deleteCategory(data) {
  return request({
    url: '/category/deleteCategory',
    method: 'POST',
    data
  })
}
// 编辑
export function modifiedCategory(data) {
  return request({
    url: '/category/modifiedCategory',
    method: 'POST',
    data
  })
}
// 详情
export function getCategory(data) {
  return request({
    url: '/category/getCategory',
    method: 'POST',
    data
  })
}
// 品类-列表下拉
export function getCategoryList(data) {
  return request({
    url: '/category/getCategoryList',
    method: 'POST',
    data
  })
}
// 所有品类下拉
export function getAllCategoryList(data) {
  return request({
    url: '/category/getAllCategoryList',
    method: 'POST',
    data
  })
}
